﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class Admin_Admin_XuLyXoaTaiKhoan : System.Web.UI.Page
{
    string CMND;
    protected void Page_Load(object sender, EventArgs e)
    {
        CMND = Request.QueryString.Get("CMND");
        if (CMND == null)
        {
            Response.Redirect("Admin_XemDanhSachTaiKhoan.aspx");
        }
    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        DataDSTableAdapters.TAIKHOANTableAdapter spadapter = new DataDSTableAdapters.TAIKHOANTableAdapter();
        int? kq = 0;
        spadapter.TAIKHOAN_XoaTheoCMND(CMND, ref kq);
        //if (kq == 0)
        //    modelXoaThanhCong.Show();
        //else
        //    modelKhongThanhCong.Show();
        //Response.Redirect("Admin_CapNhatSanPhamDang2.aspx");
    }
}
